﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using GesturePlugin;

namespace GestureActionPlugin
{
    class DesktopAlgorithm : IGestureActionAlgorithm
    {
        #region IGestureActionAlgorithm Members

        public void Start()
        {
        }

        public void Stop()
        {
        }

        public void ExecuteAction(Gesture gesture)
        {
            switch (gesture.Name)
            {
                case "right":
                    Process.Start("mailto:");
                    break;
                case "left":
                    Process.Start("WINWORD");
                    break;
                case "carre":
                    Process.Start("http://www.intechinfo.fr");
                    break;
                default:
                    break;
            }
        }

        #endregion
    }
}
